/**
 * Declare which test methods should be run in which order
 * @type Array
 * @final
 */
var tests = [
    "testAddHyperlink"
];

/**
 * Test the creation of a Hyperlink.
 */
var testAddHyperlink = function() {
    var size = root.count();
    var link = new Hyperlink("http://www.tuwien.ac.at", "TU Wien");
    
    // basic tests
    assertEqual(link.title, "TU Wien");
    assertEqual(size, root.count());
    
    // test adding and removing
    root.add(link);
    assertEqual(size+1, root.count());
    root.removeChild(link);
    link.remove();
    assertEqual(size, root.count());
    
    return;
}